package com.fh.shop.api.exception;

import com.fh.shop.api.common.ResponseEnum;

public class PayException extends RuntimeException{

    private ResponseEnum responseEnum;

    //构造函数传参给私有属性赋值
    public PayException(ResponseEnum responseEnum){
        this.responseEnum = responseEnum;

    }

    //get方法获取
    public ResponseEnum getResponseEnum() {
        return responseEnum;
    }
}
